/* 初始化 */
*{
    margin: 0;
    padding: 0;
}
body{
    height: 100vh;
}
header{
    position: relative;
    width: 100%;
    height: 50%;
    background-image: url("../../wangzhan/字话党史/img/海报1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}
.items{
    position: relative;
    top: 2px;
    width:98%;
    height: 45%;
    margin: 10px;
    border: 2px  solid black;
}
.items .item{
    position: relative;
    left: 50px;
    top: 30px;
    width: 150px;
    height: 200px;
    border: 2px solid black;
    float: left;
    margin: 10px;
    box-shadow: 0px 1px 2px 2px rgb(18, 15, 15,0.1);
    transform: rotateZ(10deg);
}
.items .item:hover{
    height: 220px;
    border: 2px solid rgb(244, 6, 6);
}

.items .item1{
    position: absolute;
    width: 50px;
    height: 250px;
    border: 2px solid black;
    margin-left: 2px;
    top: 40px;
    font-size: 30px;
    font-family: "华文楷体";
    /* background-color: rgb(8, 178, 204,0.1); */
    box-shadow: 0px 1px 2px 2px rgb(18, 15, 15,0.1);
    background: linear-gradient(220deg,red,rgb(148, 132, 132),
    rgb(255, 221, 0),rgb(0, 255, 55));
    
}
.items .item1:hover{
    height: 290px;
}

.items .item img{
    width: 100%;
    height: 100%;
}
.items .item .text{
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    font-family: "华文楷体";
    width: 100%;
    height: 50px;
    background-color: rgb(26, 202, 202,0.5);
}
.items .item .overlay{
    position: absolute;
    bottom: 0;
    
    background-color: rgb(254, 252, 252);
    overflow: hidden;
    width: 100%;
    height: 0;
    
    transition: 0.5s ease;
    
}
.items .item:hover .overlay{
    height: 20%;

}
.items .item .overlay .txt{
    white-space: nowrap; 
    color: rgb(254, 251, 251);
    font-size: 20px;
    font-family: "华文楷体";
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);

}
.items .item .overlay .txt i{
    color: rgb(255, 136, 0);
    margin: 10px;
}
footer{
    position:relative;
    width: 100%;
    height: 5%;
    background-color: rgb(165, 11, 11);
    text-align: center;
    font-size: 25px;
    font-family: "华文楷体";
    color: white;

}
footer:hover{
    color: rgb(11, 174, 210);
}